/**
 * Created by Administrator on 2016/3/2.
 * 豪华大礼包
 */
//豪华大礼包
gpNamespace.HhdlbLayer = cc.Layer.extend({
    ctor: function () {
        this._super();

        this.init();
    },
    init: function () {
        cc.spriteFrameCache.addSpriteFrames(gpNamespace.pdkdlbRes.Dlb_plist);
        //var size = cc.winSize;

        //背景图层
        var background = new cc.Sprite(gpNamespace.dlb.Dlb_Hh);
        background.attr({
            x: 200 + background.width / 2,
            y: 70 + background.height / 2,
            anchorX: 0.5,
            anchorY: 0.5,
        });
        this.addChild(background);

        //兑换
        var DhBt = new cc.MenuItemSprite(
            new cc.Sprite(gpNamespace.dlb.Dlb_Bt),
            new tyNamespace.maskSprite(gpNamespace.dlb.Dlb_Bt),
            this.settingCallbackFunction, this);
        /*DhBt.attr({
            x: 498 + DhBt.width / 2,
            y: 22 + DhBt.height / 2,
        })
        this.addChild(DhBt, 2);*/

        var DhBtMenu = new cc.Menu(DhBt);

        DhBtMenu.attr({
            x: 498 + DhBt.width / 2,
            y: 22 + DhBt.height / 2,
        });
        DhBtMenu.alignItemsHorizontally();
        this.addChild(DhBtMenu,2);

        //实物奖品页签
        /*var realJp = new cc.MenuItemImage(gpNamespace.dlb.Dlb_RealJp, gpNamespace.dlb.Dlb_RealJp_ed, this.settingCallbackFunction, this);
         var goldDh = new cc.MenuItemImage(gpNamespace.dlb.Dlb_GoldDh, gpNamespace.dlb.Dlb_GoldDh_ed, this.settingCallbackFunction, this);
         var gameDj = new cc.MenuItemImage(gpNamespace.dlb.Dlb_GameDj, gpNamespace.dlb.Dlb_GameDj_ed, this.settingCallbackFunction, this);
         var quicklyCharge = new cc.MenuItemImage(gpNamespace.dlb.Dlb_QuickCharge, gpNamespace.dlb.Dlb_QuickCharge_ed, this.settingCallbackFunction, this);

         var TopListMenu = new cc.Menu(realJp, goldDh, gameDj,quicklyCharge);

         TopListMenu.attr({
         x: size.width/2,
         y: 530+realJp.height/2,
         });
         TopListMenu.alignItemsHorizontallyWithPadding(146);
         this.addChild(TopListMenu,2);*/

    }
});